import React from "react";
import ReactDOM from 'react-dom/client';
import {Provider} from "react-redux";
import store from "../store/index";
import { BrowserRouter } from "react-router-dom";
import App from "../app";

// 再需要激活的模式下挂载应用(hydrateRoot)
ReactDOM.hydrateRoot(document.getElementById('root'),
<Provider store={store}>
    <BrowserRouter>
        <App/>
    </BrowserRouter>
</Provider>
);
